package com.roin.learn.springsecurity.mapper;

import com.roin.learn.springsecurity.entity.SysAdminRoleRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roin.learn.springsecurity.entity.SysPermission;

import java.util.List;

/**
 * <p>
 * 后台用户和角色关系表 Mapper 接口
 * </p>
 *
 * @author Roin
 * @since 2021-01-07
 */
public interface SysAdminRoleRelationMapper extends BaseMapper<SysAdminRoleRelation> {

    /**
     * 查询指定管理员的所有权限
     * @param adminId
     * @return
     */
    List<SysPermission> getPermissionListByAdminId(Long adminId);
}
